import java.util.Scanner;

public class HarmonicSeries {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int n=scanner.nextInt();
        double sum=0;
        for (int i = 1; i <= n; i++)
            sum+=1./i;
        System.out.println(sum);
    }
}